package com.fivestar.finance.app.bean.resp;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by hjd on 2016/5/26.
 */
public class TaskResp implements Serializable, Parcelable {

    String orderId;//订单号
    int orderType;//订单类型
    String startTime;//配送时间
    String carType;//车型
    String startAddress;//发货地
    String endAddress;//配送地
    double length;//配送里程
    double money;//总价

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public int getOrderType() {
        return orderType;
    }

    public void setOrderType(int orderType) {
        this.orderType = orderType;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getCarType() {
        return carType;
    }

    public void setCarType(String carType) {
        this.carType = carType;
    }

    public String getStartAddress() {
        return startAddress;
    }

    public void setStartAddress(String startAddress) {
        this.startAddress = startAddress;
    }

    public String getEndAddress() {
        return endAddress;
    }

    public void setEndAddress(String endAddress) {
        this.endAddress = endAddress;
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.orderId);
        dest.writeInt(this.orderType);
        dest.writeString(this.startTime);
        dest.writeString(this.carType);
        dest.writeString(this.startAddress);
        dest.writeString(this.endAddress);
        dest.writeDouble(this.length);
        dest.writeDouble(this.money);
    }

    public TaskResp() {
    }

    protected TaskResp(Parcel in) {
        this.orderId = in.readString();
        this.orderType = in.readInt();
        this.startTime = in.readString();
        this.carType = in.readString();
        this.startAddress = in.readString();
        this.endAddress = in.readString();
        this.length = in.readDouble();
        this.money = in.readDouble();
    }

    public static final Creator<TaskResp> CREATOR = new Creator<TaskResp>() {
        @Override
        public TaskResp createFromParcel(Parcel source) {
            return new TaskResp(source);
        }

        @Override
        public TaskResp[] newArray(int size) {
            return new TaskResp[size];
        }
    };
}
